// AutoCreateCSVDlg.h : header file
//

#if !defined(AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_)
#define AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CheckComboBox.h"
/////////////////////////////////////////////////////////////////////////////
// CAutoCreatePrestaShopCSVDlg dialog

class CAutoCreatePrestaShopCSVDlg : public CDialog
{
// Construction
public:
	CAutoCreatePrestaShopCSVDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CAutoCreatePrestaShopCSVDlg)
	enum { IDD = IDD_AUTOCREATECSV_PRESTASHOP };
	CString m_strPName;
	CString m_strCategoryName;
	CString	m_strCreateName;
	int		m_nDiscountPercent;
	CString	m_strFieldSeparator;
	CString	m_strMultipleValueSeparator;
//	CString m_strGroupAndValue;
	int		m_nCreateNO;
	int		m_nHuoStart;
	CString	m_strPicPos;
	CString	m_strProductName;
	int		m_nPrice;
	int		m_nProductStart;
	int		m_nKuNO;
	BOOL	m_bChkCreateProducts;
	BOOL	m_bChkCreateAttributes;
	CCheckComboBox	m_ComboGroupAndValueLst;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAutoCreatePrestaShopCSVDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAutoCreatePrestaShopCSVDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnBtnDebug();
	afx_msg void OnDestroy();
	afx_msg void OnBtnPrestashop();
	afx_msg void OnBtnAddGropvalue();
	afx_msg void OnBtnGroupDel();
	afx_msg void OnBtnSave();
	afx_msg void OnBtnRead();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void CreateAttributesLst(CString strAttrFileName);
	void CreateProductsLst(CString strProFileName);
	BOOL m_bOpenDos;
	CString m_strIniName;
	void ReadConfig(const char * filename);
	void WriteConfig(const char * filename);
	BOOL IsFileExists(CString filename);
	BOOL CheckInputValidate();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AUTOCREATECSVDLG_H__B8247ECE_DD7A_4A29_920C_E8765AAF7673__INCLUDED_)
